<div class="form">   
    <?php $this->render('cmswidgets.views.notification'); ?>
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'paymentmethod-form',
        'enableAjaxValidation' => true,
    ));
    ?>

    <?php echo $form->errorSummary($model); ?>
    <div>   
        <div class="left">
            <div class="row">
                <?php echo $form->labelEx($model, 'payment_currency'); ?>
                <?php
                $sql = "SELECT currencyCode FROM gxc_countries "
                        . "WHERE currencyCode!='' "
                        . " order by currencyCode ASC";
                $lData = CHtml::listData(Yii::app()->db->createCommand($sql)->queryAll(), 'currencyCode', 'currencyCode');
                echo $form->dropDownList($model, 'payment_currency', $lData, array('id' => 'payment_currency'));
                ?>
                <?php echo $form->error($model, 'payment_currency'); ?>
            </div>
            <div class="row" >
                <?php echo $form->labelEx($model, 'payment_name'); ?>
                <?php echo $form->textField($model, 'payment_name'); ?>
                <?php echo $form->error($model, 'payment_name'); ?>
            </div>

            <div class="row" >
                <?php echo $form->labelEx($model, 'payment_description'); ?>
                <?php echo $form->textField($model, 'payment_description'); ?>
                <?php echo $form->error($model, 'payment_description'); ?>
            </div>
            <div class="row" >
                <?php echo $form->labelEx($model, 'weight'); ?>
                <?php echo $form->textField($model, 'weight'); ?>
                <?php echo $form->error($model, 'weight'); ?>
            </div>
            <div class="row" >
                <?php echo $form->labelEx($model, 'status'); ?>                
                <?php echo $form->dropDownList($model, 'status', array('1' => 'Show', '0' => 'Hidden'), array('options' => array('1' => array('selected' => true)))); ?>
                <?php echo $form->error($model, 'status'); ?>
            </div>
        </div>
        <div class="clear"></div>
    </div>    

    <div class="row">
        <?php echo CHtml::submitButton(t('cms', 'Save'), array('class' => 'bebutton active')); ?>
    </div>

    <?php $this->endWidget(); ?>
</div><!-- form -->
